home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950929-19951130 / 000121_news@columbia.edu_Mon Oct 16 15:09:20 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA07026
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Mon, 16 Oct 1995 11:09:27 -0400
  3. Received: by apakabar.cc.columbia.edu id AA02084
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Mon, 16 Oct 1995 11:09:25 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc,comp.dcom.modems
  8. Subject: Re: kermit: please don't drop DTR
  9. Date: 16 Oct 1995 15:09:20 GMT
  10. Organization: Columbia University
  11. Lines: 36
  12. Message-Id: <45tsj0$211@apakabar.cc.columbia.edu>
  13. References: <45pc8d$r0i@agate.berkeley.edu>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Xref: news.columbia.edu comp.protocols.kermit.misc:3854 comp.dcom.modems:113199
  16. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  17.  
  18. In article <45pc8d$r0i@agate.berkeley.edu>,
  19. Ramon F Herrera <herrera@canaima.ME.Berkeley.EDU> wrote:
  20. : Is there any way to tell kermit NOT to drop DTR when the user quits?
  21. : I am using kermit just to dial to an Internet Service Provider,
  22. : and therefore after quitting, the phone call should not be dropped.
  23. : After kermit ends, I grab the IP address from the kermit log and
  24. : start the SLIP daemon.
  25. : Later, when all Internet exchange is done, I need to tell the
  26. : serial port to drop DTR so the modems hangs up.
  27. : I guess that if the port is set up with the HUPCL parameter,
  28. : what I really need is to ask kermit not to close the file (port).
  29. : Should I look for this line, comment it out, and recompile kermit?:
  30. : close("/dev/tty0");
  31. : Or should I set the port to -HUPCL, run kermit, quit, and then change
  32. : the setting to +HUPCL?
  33. : Any other suggestions or comments?
  34. Long question, short answer:
  35.  
  36. It is a fundamental property of UNIX that when a program exits, either
  37. explicitly (_exit()) or implicitly, all of the files that is opened are
  38. closed.  UNIX does this even if the program doesn't.
  39.  
  40. One way to accomplish what you want to do is to have a superior process
  41. open the port, pass its file descriptor to Kermit (see the documentation),
  42. and then when Kermit exits the superior process still has it open.
  43.  
  44. - Frank